package com.yhny.lykj.yuhannongye.app;

import android.os.Bundle;

import com.longsichao.lscframe.app.LSCActivity;
import com.yhny.lykj.yuhannongye.model.BaseModel;

/**
 * Created by lc on 2016/3/30.
 */
public class BaseActivity extends LSCActivity implements Constants{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        AppManager.getAppManager().addActivity(this);
        super.onCreate(savedInstanceState);

    }
    @Override
    protected void onStart() {
        super.onStart();

    }
    public boolean isDataEmpty(BaseModel model){
        if (model == null || model.equals("")||model.status==NET_ERROR||model.status!=NET_SUSSEC) {
            return true;
        }
        return false;
    }

}
